<nav class="nav-wrapper">
    <div class="home-wrapper">
        <a class="home-brand" href="javascript:''">
            <img src="/img/logo.svg">
        </a>
        <form id="search_form" class="navbar-search" action="/search">
            <input type="text" id="q" name="q" class="search-query span3" value="" placeholder='搜索...'>
        </form>
        <ul class=" nav pull-right ">
            <li><a href="/ ">首页</a></li>
            <li><a href="/messege ">未读消息</a></li>
            {{if nick_name}}
            <li><a href="/user/publish ">发布话题</a></li>
            <li><a href="/user/info ">个人中心</a></li>
            <li><a href="/user/setting ">设置</a></li>
            <li> <a href="javascript:; ">欢迎您 <span id="userName" >{{nick_name}}</span> </a></li>
            <li><a href="/out " id="signOut ">退出</a></li>
            <li>
                <a href="javascript:; "></a>
            </li>
            {{else}}
            <li><a href="/login " class="btn btn-primary btn-sm home-admin-btn " role="button ">登陆</a>
                <a href="/register " class="btn btn-primary btn-sm home-admin-btn " role="button ">注册</a>
            </li>
            {{/if}}
        </ul>
    </div>
</nav>